<template>
    <ul class="todo-main">
    <my-item
			v-for="todoObj in todo" :key="todoObj.id"
			:todoVal="todoObj"
			:checkedTodo="checkedTodo"
			:delTodo="delTodo"
    ></my-item>
	</ul>
</template>

<script>
import Item from './MyItem'

export default {
  name: 'MyList',
	props: ['todo', 'checkedTodo', 'delTodo'],
  components: {
    'my-item': Item
  },
}
</script>

<style scoped>
	/*List*/
	.todo-main {
		margin-left: 0px;
		border: 1px solid #ddd;
		border-radius: 2px;
		padding: 0px;
	}

	.todo-empty {
		height: 40px;
		line-height: 40px;
		border: 1px solid #ddd;
		border-radius: 2px;
		padding-left: 5px;
		margin-top: 10px;
	}
</style>